﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<!DOCTYPE html>
<html>
<head>
    <title>衣服鞋帽</title>
    <script type="text/javascript" src="/Scripts/NetBee/addRule.js"></script>
</head>
<body>
    <form action="/NetBee/AddRule/" method="post" accept-charset="utf-8">
    <div id="productName">
        <div style="float: none">
            <div style="float: left"><a href="#" onclick="removeRule(this)">移除</a></div>
            <div style="float: left">
                <span>任务id :</span><span><input type="text" style=" width:20px;" name="rules[0].TaskId" value="@ViewBag.TaskId" /></span></div>
            <div style="float: left">
                <span>Name :</span><span><input type="text" style="width: 200px;" name="rules[0].Name"
                    value="brandName" /></span></div>
            <div style="float: left">
                <span>Xpath</span><span><input type="text" style="width: 600px;" name="rules[0].Xpath"
                    value="//dl[@@id='select-brand']/dd/div[@@class='content']/div[@@rel>0]/a/text()" /></span></div>
         <div style="clear: left">

        </div>
        </div>
        
        <div style="float: none">
            <div style="float: left"><a href="#" onclick="removeRule(this)">移除</a></div>
            <div style="float: left">
                <span>任务id :</span><span><input type="text" style=" width:20px;" name="rules[1].TaskId" value="@ViewBag.TaskId" /></span></div>
            <div style="float: left">
                <span>Name :</span><span><input type="text" style="width: 200px;" name="rules[1].Name"
                    value="style" /></span></div>
            <div style="float: left">
                <span>Xpath</span><span><input type="text" style="width: 600px;" name="rules[1].Xpath"
                    value="//div[@@id='select']/dl[2]/dd/div/following-sibling::*/a/text()" /></span></div>
        <div style="clear: left">
      
        </div>
        </div>
        
        <div style="float: none">
            <div style="float: left"><a href="#" onclick="removeRule(this)">移除</a></div>
            <div style="float: left">
                <span>任务id :</span><span><input type="text" style=" width:20px;" name="rules[2].TaskId" value="@ViewBag.TaskId" /></span></div>
            <div style="float: left">
                <span>Name :</span><span><input type="text" style="width: 200px;" name="rules[2].Name"
                    value="material" /></span></div>
            <div style="float: left">
                <span>Xpath</span><span><input type="text" style="width: 600px;" name="rules[2].Xpath"
                    value="//div[@@id='select']/dl[3]/dd/div/following-sibling::*/a/text()" /></span></div>
       <div style="clear: left">
        </div>
        </div>
        
        <div style="float: none">
            <div style="float: left"><a href="#" onclick="removeRule(this)">移除</a></div>
            <div style="float: left">
                <span>任务id :</span><span><input type="text" style=" width:20px;" name="rules[3].TaskId" value="@ViewBag.TaskId" /></span></div>
            <div style="float: left">
                <span>Name :</span><span><input type="text" style="width: 200px;" name="rules[3].Name"
                    value="sleeve" /></span></div>
            <div style="float: left">
                <span>Xpath</span><span><input type="text" style="width: 600px;" name="rules[3].Xpath"
                    value="//div[@@id='select']/dl[4]/dd/div/following-sibling::*/a/text()" /></span></div>
       <div style="clear: left">
        </div>
        </div>
        
        <div style="float: none">
           <div style="float: left"><a href="#" onclick="removeRule(this)">移除</a></div>
            <div style="float: left">
                <span>任务id :</span><span><input type="text" style=" width:20px;" name="rules[4].TaskId" value="@ViewBag.TaskId" /></span></div>
            <div style="float: left">
                <span>Name :</span><span><input type="text" style="width: 200px;" name="rules[4].Name"
                    value="cut" /></span></div>
            <div style="float: left">
                <span>Xpath</span><span><input type="text" style="width: 600px;" name="rules[4].Xpath"
                    value="//div[@@id='select']/dl[5]/dd/div/following-sibling::*/a/text()" /></span></div>
        <div style="clear: left">
        </div>
        </div>
        
        <div style="float: none">
            <div style="float: left"><a href="#" onclick="removeRule(this)">移除</a></div>
            <div style="float: left">
                <span>任务id :</span><span><input type="text" style=" width:20px;" name="rules[5].TaskId" value="@ViewBag.TaskId"/></span></div>
            <div style="float: left">
                <span>Name :</span><span><input type="text" style="width: 200px;" name="rules[5].Name"
                    value="size" /></span></div>
            <div style="float: left">
                <span>Xpath</span><span><input type="text" style="width: 600px;" name="rules[5].Xpath"
                    value="//div[@@id='select']/dl[6]/dd/div/following-sibling::*/a/text()" /></span></div>
       
       <div style="clear: left">
        </div>
        </div>
        
        <div style="float: none">
            <div style="float: left"><a href="#" onclick="removeRule(this)">移除</a></div>
            <div style="float: left">
                <span>任务id :</span><span><input type="text" style=" width:20px;" name="rules[6].TaskId" value="@ViewBag.TaskId"/></span></div>
            <div style="float: left">
                <span>Name :</span><span><input type="text" style="width: 200px;" name="rules[6].Name"
                    value="size" /></span></div>
            <div style="float: left">
                <span>Xpath</span><span><input type="text" style="width: 600px;" name="rules[6].Xpath"
                    value="//div[@@id='select']/dl[6]/dd/div/following-sibling::*/a/text()" /></span></div>
       
       <div style="clear: left">
        </div>
        </div>
    </div>
    <input type="submit" value="保存" />
    </form>
</body>
</html>
